package my.socket;

import my.common.File;

/**
 * @author fengbo
 */
public abstract class AbstractSocket {

    final int fileDescriptor;


    public AbstractSocket(int fileDescriptor) {
        this.fileDescriptor = fileDescriptor;
    }

    public int close() {
        return File.close(fileDescriptor);
    }

    public int intValue() {
        return fileDescriptor;
    }
}
